/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.agtranscontinental.sisref.ws;

import com.agtranscontinental.dgs001.dto.PersonalDto;
import com.agtranscontinental.dgs001.model.Personal;
import com.agtranscontinental.sisref.sessionremote.PersonalEjbRemote;
import javax.ejb.EJB;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;

/**
 *
 * @author ericson
 */
@WebService(serviceName = "LoginWS")
public class LoginWS {
    @EJB
    private PersonalEjbRemote ejbRef;// Add business logic below. (Right-click in editor and choose
    // "Insert Code > Add Web Service Operation")

    @WebMethod(operationName = "getPersonal")
    public PersonalDto getPersonal(@WebParam(name = "usuario") String usuario, @WebParam(name = "contrasena") String contrasena) {
        return ejbRef.getPersonalDto(usuario, contrasena);
    }
    
}
